<?php

use Illuminate\Support\Facades\Schema;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;

class CreatePropertysTable extends Migration
{
    /**
     * Run the migrations.
     *
     * @return void
     */
    public function up()
    {
        Schema::create('propertys', function (Blueprint $table) {
            $table->bigIncrements('id');
            $table->unsignedInteger('size')->comment('数据资产包大小（GB）');
            $table->unsignedInteger('storage')->comment('数据资产包剩余大小（GB）');
            $table->unsignedTinyInteger('status')->default(0)->comment('状态:0-销售中 1-已售完');
            $table->timestamps();
        });
    }

    /**
     * Reverse the migrations.
     *
     * @return void
     */
    public function down()
    {
        Schema::dropIfExists('propertys');
    }
}
